import {I18Parse} from '@lowcode/jpaas-common-lib';
import miniQueryLang from '../../../../../locales/lang/impl/form/miniQueryLang';
let lang = miniQueryLang;
let i18n=function (langKey,text) {
    return I18Parse.getI18Val(lang.miniQuery.js,langKey, text)
}

export const relationTypeList= {
    'user':[
        {value:"selfUser",label:i18n('oneself','自己')},
        {value:"upperUser",label:i18n('user','上级用户')},
        {value:"downUser",label:i18n('subordinateUser','下级用户')}
    ],
    'group':[
        {value:"selfGroup",label:i18n('department','本部门')},
        {value:"upperGroup",label:i18n('superior','上级部门')},
        {value:"downGroup",label:i18n('subordinateDepartment','下级部门')}
    ],
    'datepicker':[
        {value:i18n('theLastDay','最近一天'),label:i18n('theLastDay','最近一天'),type:'relative',defaultVal:'-1'+i18n('day','天')},
        {value:i18n('thatDay','当天'),label:i18n('thatDay','当天'),type:'relative',defaultVal:'+0'+i18n('day','天')},
        {value:i18n('lastWeek','最近一周'),label:i18n('lastWeek','最近一周'),type:'relative',defaultVal:'-7'+i18n('day','天')},
        {value:i18n('lastMonth','最近一个月'),label:i18n('lastMonth','最近一个月'),type:'relative',defaultVal:'-30'+i18n('day','天')}
    ],
    'month':[
        {value:i18n('lastMonth','最近一个月'),label:i18n('lastMonth','最近一个月'),type:'relative',defaultVal:'-1'+i18n('month','月')},
        {value:i18n('currentDay','当月'),label:i18n('currentDay','当月'),type:'relative',defaultVal:'+0'+i18n('month','月')}
    ],
    'rangepicker':[
        {value:i18n('theLastDay','最近一天'),label:i18n('theLastDay','最近一天'),type:'relative',defaultVal:'-1'+i18n('day','天')},
        {value:i18n('lastWeek','最近一周'),label:i18n('lastWeek','最近一周'),type:'relative',defaultVal:'-7'+i18n('day','天')},
        {value:i18n('lastMonth','最近一个月'),label:i18n('lastMonth','最近一个月'),type:'relative',defaultVal:'-30'+i18n('day','天')}
    ]
}